import request from '@/utils/request'

// 查询施工队分期支付信息列表
export function payableInstalmentList(query){
  return request({
    url: "/api/instalment/payable/getList",
    method: 'get',
    params: query
  })
};

export function selectPayableInstalment(data){
  return request({
    url: "/api/instalment/selectPayableInstalment",
    method: 'get',
    params: data
  })
};

export function selectPayableInstalmentVoucherTowList(query){
  return request({
    url: "/api/instalment/payable/getVoucherTowList",
    method: 'get',
    params: query
  })
};

export function selectPayableInstalmentEndAuditList(query){
  return request({
    url: "/api/instalment/payable/getEndAuditList",
    method: 'get',
    params: query
  })
};

// 修改施工队分期支付信息凭证审核状态
export function editVoucherStatus(instalmentId , voucherStatus){
  const data = {
    instalmentId,
    voucherStatus,
  }
  return request({
    url: "/api/instalment/payable/editVoucherStatus",
    method: 'put',
    data: data
  })
};
